import { FC } from "react";

interface PropType {
  count: number | string;
  name?: string;
}

// const Child: FC<PropType> = (props) => {
//   return <div>这是child组件 - {props.count}</div>;
// };

const Child = ({ count }: PropType) => {
  return <div>这是child组件 - {count}</div>;
};

export default Child;
